package interface_01;

public class Cat extends Pet implements Animal {
    public Cat(String name,int age){
        super(name,age,"猫");
    }

    @Override
    public void eat() {
        System.out.println(this.getName()+"正在吃鱼");
    }

    @Override
    public void travel() {
        System.out.println(this.getName()+"正在爬树");
    }
}
